package com.code.model.vo.user;

import com.code.commons.model.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 修改手机号VO
 *
 * @author tangyifei
 * @since 2019年12月25日17:49:27
 */
@ApiModel("修改手机号VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ModifyPhoneVO implements Model {

    @ApiModelProperty(value = "用户主键", example = "1")
    @NotBlank(message = "用户主键不能为空")
    private String id;

    @ApiModelProperty(value = "旧手机号", example = "+86150****0055")
    @NotBlank(message = "旧手机号不能为空")
    private String oldPhone;

    @ApiModelProperty(value = "旧手机号相关的验证码", example = "123456")
    @NotBlank(message = "旧手机号相关的验证码不能为空")
    private String oldPhoneAuthCode;

    @ApiModelProperty(value = "新手机号", example = "+86150****0055")
    @NotBlank(message = "新手机号不能为空")
    private String newPhone;

    @ApiModelProperty(value = "区号", example = "+86")
    private String areaNo;

    @ApiModelProperty(value = "新手机号相关的验证码", example = "123456")
    @NotBlank(message = "新手机号相关的验证码不能为空")
    private String newPhoneAuthCode;

}
